package Core;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Mr Bao
 */
public class MessageBuilder {

    public static final String ONE = ":";
    public static final String TWO = ";";
    public static final String NULL = "NULL";
    public static final String NOT_NULL = "NOT_NULL";

    public static String BuildLogInMessage(String userName, String passwors, boolean invisible) {
        String msg = MessageType.LogIn + ONE + userName + TWO + passwors + TWO + invisible;
        return msg;
    }

    public static String BuildSendTextMessage(String to, String message) {
        String msg = MessageType.SendText + ONE + to + TWO + message;
        return msg;
    }

    public static String BuildSendBuzzMessage(String to) {
        String msg = MessageType.SendBuzz + ONE + to;
        return msg;
    }

    public static String BuildGetSlaveMessage() {
        return MessageType.GetSlaveMessage;
    }

    public static String BuildHaveGotSlaveMessage() {
        return MessageType.HaveGotSlaveMessage;
    }
}
